package lab02.test34;

/**
 * Created by 123 on 2017/12/29.
 */
public class Worker extends Employee{
    private int days;

    private float salaryForDay;

    public Worker(int days, float salaryForDay) {
        this.days = days;
        this.salaryForDay = salaryForDay;
    }

    @Override
    float computerSalary() {
        return days*salaryForDay;
    }

}
